Skip to main content

Label Field

Type

widget

Summary

A label field

Description

A field displaying a fixed text string to be used as a label.

In edit mode, double-clicking the label field brings up an input field which allows the string to be modified.

Associated Syntax

Property

NameSummarySyntax
themeDataThe theme mappings of this widgetset the themeData of <widget> to {<array>} get the themeData of <widget>
textColorThe text color of the label fieldset the textColor of <widget> to pColor get the textColor of <widget>
textThemeThe text theme mappings of this widgetset the textTheme of <widget> to {<array>} get the textTheme of <widget>
borderColorThe border color of the label fieldset the borderColor of <widget> to pColor get the borderColor of <widget>
editableDefines if the user can edit or change the text of the labelset the editable of <widget> to {<true> | <false>} get the editable of <widget>
verticalAlignThe vertical alignment of the label textset the verticalAlign of <widget> to pAlignment get the verticalAlign of <widget>
multilineIf the label is displayed on multiple linesset the multiline of <widget> to {<true> | <false>} get the multiline of <widget>
borderRadiusThe border radius of the label fieldset the borderRadius of <widget> to pRadius get the borderRadius of <widget>
borderWidthThe border width of the label fieldset the borderWidth of <widget> to pWidth get the borderWidth of <widget>
paddingThe padding that the text of the label will haveset the padding of <widget> to {<integer>} get the padding of <widget>
labelThe text to display as the field's labelset the label of <widget> to pLabel get the label of <widget>
backgroundColorThe background color of the label fieldset the backgroundColor of <widget> to pColor get the backgroundColor of <widget>